<?php 
/*
 * template name: group
*/
get_header();
?>
<section class="main-top">
	<div class="center-box">
		<?php while (have_posts()) : the_post(); ?>
		<div class="top-title">
		    <h1><?php the_title(); ?></h1>
		    <?php the_content(); ?>
		</div>
        <?php endwhile; ?>
	    <div class="cat-info">
			<?php dtheme_views(); ?>&nbsp;人阅读
	        <p>共&nbsp;<?php echo $count_tags = wp_count_terms('category'); ?>&nbsp;个群组</p>
	    </div>
</div>
</section>
<div class="main">
    <section class="primary">
        
        <?php if (have_posts()) : ?>
        
        <!--分类列表 -->
        <h1 class="hd">群组列表</h1>
        <ul>
            <?php catslist(); ?>
            
        </ul>
        <?php endif; ?>
                    
    </section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>